package day2;

public class shuzumaxandmin {
    public static void main(String[] args) {
        int[] array = new int[]{5, 10, 18, 38, 56, 999, 54, 53, 3};
        int max = array[0];
        for (int i = 1; i < array.length; i++) {
            if (max < array[i]) {
                max = array[i];
            }
        }
        System.out.println("最大值=" + max);
    }
}
